package com.quick.android.dialog;

import android.app.Activity;
import android.app.Dialog;

public class BaseDialog extends Dialog {
	public Activity mContext;

	public BaseDialog(Activity context) {
		super(context);
		mContext = context;
	}

	@Override
	public void show() {
		if (mContext != null && !mContext.isFinishing()) {
			super.show();
		}
	}

	@Override
	public void dismiss() {
		if (mContext != null && !mContext.isFinishing()) {
			super.dismiss();
		}
	}
}
